/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import model.Disciplina;
import java.util.ArrayList;

/**
 *
 * @author Rúiter
 */
public class CatalogoCurso {

    private ArrayList<Disciplina> disciplinas;
    private final String curso;
    private final int codCurso;
    private final String url;

    public CatalogoCurso(String c, int cod, String url) {
        this.curso = c;
        this.codCurso=cod;
        this.url=url;
    }
    
    public String getCurso(){
        return curso;
    }
    
    public int getCodCurso(){
        return codCurso;
    }
    
    public Disciplina getDisciplina(int cod){
        int i = disciplinas.indexOf(cod);
        return disciplinas.get(i);
    }    
}
